import { createSSRApp } from "vue";
import App from "./App.vue";
import store from "./common/libs/store";
import i18n from "./common/libs/i18n";
import { includeSrc } from "./common/libs/utils";
import "./common/libs/interceptor";
import uvUI from '@/uni_modules/uv-ui-tools';
import "virtual:uno.css";

export const createApp = () => {
  const app = createSSRApp(App).use(uvUI).use(i18n).use(store);
  app.config.globalProperties.include = includeSrc;
  return { app };
};

(<any>uni).$uv.config.unit = 'rpx';